package com.mes.entity.cb;

import java.util.Date;
import java.util.Objects;

/**
 * @ClassName: WarehouRed
 * @Description: 入库记录
 * @Author cb
 * @Date 2018年4月10日15:40:49
 * @version 1.0
 */
public class WarehouRed {

    /**
     * id
     */
    private  long rid;

    /**
     * 入库时间
     */

    private Date rdate;

    /**
     * 入库人
     */
    private  long rman;

    /**
     * 入库单
     */
    private  String red;
    
    private String staffname;
    
    


    public String getStaffname() {
		return staffname;
	}

	public void setStaffname(String staffname) {
		this.staffname = staffname;
	}

	public long getRid() {
        return rid;
    }

    public void setRid(long rid) {
        this.rid = rid;
    }

    public Date getRdate() {
        return rdate;
    }

    public void setRdate(Date rdate) {
        this.rdate = rdate;
    }

    public long getRman() {
        return rman;
    }

    public void setRman(long rman) {
        this.rman = rman;
    }

    public String getRed() {
        return red;
    }

    public void setRed(String red) {
        this.red = red;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WarehouRed)) return false;
        WarehouRed that = (WarehouRed) o;
        return getRid() == that.getRid() &&
                getRdate() == that.getRdate() &&
                getRman() == that.getRman() &&
                Objects.equals(getRed(), that.getRed());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getRid(), getRdate(), getRman(), getRed());
    }
}
